//
//  NoteTool.h
//  笔记1
//
//  Created by  on 2022/11/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NoteTool : NSObject

/// 找笔记
+ (void)find:(NSInteger)stamp isFile:(BOOL)isFile isDelete:(BOOL)isDelete complete:(nullable void(^) (NSMutableArray <Note*>*result))block;

/// 找文件夹
+ (void)findFile:(NSInteger)stamp isDelete:(BOOL)isDelete complete:(nullable void(^) (NSMutableArray <Note*>*result))block;

/// 找文件夹里面的笔记
+ (void)findFileNote:(Note *)note isDelete:(BOOL)isDelete complete:(nullable void(^) (NSMutableArray <Note*>*result))block;

/// 找到收藏的笔记，和 文件夹
+ (void)findFavorite:(nullable void(^) (NSMutableArray <Note*>*result))block;

/// 找到移到废纸篓的笔记，和 文件夹
+ (void)findDelete:(nullable void(^) (NSMutableArray <Note*>*result))block;

/// 更新笔记，和文件夹里面的笔记
+ (void)update:(Note *)note complete:(nullable void(^) (BOOL success))block;

/// 搜索笔记
+ (void)search:(NSString *)text complete:(nullable void(^) (NSMutableArray <Note*>*result))block;

/// 恢复笔记，和文件夹
+ (void)recover:(NSMutableArray<Note*>*)array complete:(nullable void(^) (BOOL success))block;

/// 删除
+ (void)delete:(NSMutableArray<Note*>*)array complete:(nullable void(^) (BOOL success))block;

/// 从文件夹导出
+ (void)moveOutNote:(Note*)note complete:(nullable void(^) (BOOL success))block;
@end

NS_ASSUME_NONNULL_END
